<table class="CSSTableGenerator">
   <tr>
       <td>Name</td>
       <td>Phone</td>
       <td>Address</td>
       <td>Edit</td>
       <td>Delete</td>
   </tr>
<?php
    $hospital = $this->hospital;

    if(isset($hospital)){
        foreach ($hospital as $item ){
            echo "<tr>";    

            echo "<td>".$item['name']."</td>";
            echo "<td>".$item['phone']."</td>";
            echo "<td>".$item['address']."</td>";
            echo "<td><a class='edit-item' href ='".$this->baseUrl."/".$this->module."/hospital-detail/edit/id/".$item['id']."'>EDIT<a/></td>";
            echo "<td><a class='del-item' href ='".$this->baseUrl."/".$this->module."/hospital-detail/del/id/".$item['id']."'>DELETE<a/></td>";
            echo "</tr>";
        }
    }
 ?>
  <tr>
                <td colspan="4">
                <?php echo  $this->paginationControl($this->hospital, 'Sliding', 'index/paging.phtml'); ?>
                </td>
        </tr>
    
</table>